/**
 * 
 */
package group.anglers.om.core.persistence;

import group.anglers.om.core.exceptions.OmException;

import java.util.List;

/**
 * @author an.pham
 *
 */
public interface Query<X> {
	List<X> getResultList() throws OmException;
	X getSingleResult() throws OmException;
	int executeUpdate() throws OmException;
	Query<X> setMaxResults(int maxResult);
	Query<X> setParameter(Object param);
}
